/**
* Copyright(c) 2019 六六微科技 Co. Ltd.
* All right reserved.
/*
* 订单模块
* @author 小六子
* @date 2019年9月22日
*/
import axios from '../../axios'

// 获取
export const get = (id) => {
  return axios({
    url: '/product/order/get',
    method: 'get',
    params: {
      id: id
    }
  })
}
// 获取明细
export const getDetails = (id) => {
  return axios({
    url: '/product/order/getDetails',
    method: 'get',
    params: {
      id: id
    }
  })
}
// 查询
export const query = (data) => {
  return axios({
    url: '/product/order/query',
    method: 'post',
    data
  })
}

// 查询销售日报
export const saleDailyStatistics = (data) => {
  return axios({
    url: '/product/report/saleDailyStatistics',
    method: 'post',
    data
  })
}
// 查询销售商品统计
export const saleProducts = (data) => {
  return axios({
    url: '/product/report/saleProducts',
    method: 'post',
    data
  })
}
// 查询销售商品统计明细
export const saleProductDetail = (data) => {
  return axios({
    url: '/product/report/saleProductDetail',
    method: 'post',
    data
  })
}
// 查询促销订单
export const promotion = (data) => {
  return axios({
    url: '/product/report/promotion',
    method: 'post',
    data
  })
}
// 查询促销订单
export const searchTurnover = (data) => {
  return axios({
    url: '/product/report/searchTurnover',
    method: 'post',
    data
  })
}
